package com.example.demo.demos.web;

import org.springframework.stereotype.Component;

@Component
public class ZhaoLiuHandler extends AbstractHandler {

    @Override
    public String alipay(String name) {
        return name + "支付成功";
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        Factory.register("支付宝", this);
    }
}
